<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>"/>
		<title>粮油集团办公自动化协作平台</title>
<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
<style type="text/css">
	#fileUploadDiv a{
	background:url(../images/scicon.gif) no-repeat 0 0px;width:77px;height:22px;cursor: hand;margin-top:5px;margin-left:5px;
</style>
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>

<script type="text/javascript">
		
		//判断收件人和内容是不是为空

		function submitform1(){
					document.form1.submit();
		}
</script>
		<%
		   String message = (String)request.getAttribute("message");
		   String datetime = (String)request.getAttribute("datetime");
		   String numb = (String)request.getAttribute("numb");
		   String id = (String)request.getAttribute("id");
		   if(datetime==null) datetime=" ";
		   if(message==null) message=" ";
		   String action = "";
		   if(numb==null || numb==""){
				action = basePath +"tjsinfo/tjsoa/system/beiwang.do?method=addBeiWang";
		   }else{
			    action = basePath +"tjsinfo/tjsoa/system/beiwang.do?method=updateBeiwang";
		   }
		%>
	</head>

	<body onload="initselectusertreecheck()">
		<div id="right" style="height: 89.5%">
			<div class="p_01">
				<ul>
					<li class="s09">
						<a href="javaScript:submitform1();">确认</a>
					</li>
					<li class="s10">
						<a href="javaScript:history.go(-1);">返回</a>
					</li>
				</ul>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				height="100%">
				<tr>
					<td valign="top" height="100%">
						<div class="contabwd" style="overflow-y: scroll">
							<form action="<%=action%>" name="form1" method="post">
								<div id="files" style="display: none;"></div>
								<table width="740" border="0" cellspacing="0" cellpadding="0" style="margin-left: 10px" class="bgypff">
									<tr>
										<td>
											发送时间：
										</td>
										<td>
        									<input name="datetime" id="datetime" type="text" class="Wdate" value="<%=datetime %>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
										</td>
									</tr> 
									<tr>
										<td>
											备忘事项：
										</td>
										<td>
											<textarea rows="18" cols="80" name="message" id="message" ><%=message %></textarea>
										</td>
									</tr>
								</table>
								<input  type="hidden" name="id" id="id" value="<%=id%>"/>
							    <input id="basePath" value="<%=basePath%>" type="hidden"/>
							</form>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>
